//
//  SubscribeHeaderView.swift
//  NDAi
//
//  Created by 丸子 on 2024/6/20.
//

import UIKit

class SubscribeHeaderView: UIView {
    private lazy var headerImage: UIImageView = {
       let imageView = UIImageView()
        imageView.contentMode = .scaleToFill
        imageView.clipsToBounds = true
        imageView.image = UIImage(named: "icon_subscribe_header")
        return imageView
    }()
    

    
    override func layoutSubviews() {
        super.layoutSubviews()
        self.themeGradient([UIColor(hexString: "#28272D"), UIColor(hexString: "#605E65")], .topToBottom)
    }
    
    override init(frame: CGRect) {
        super.init(frame: CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: GET_WIDTH(W: 272)))
        self.addSubviews([headerImage])
        headerImage.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(navHig())
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    

}
